package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author cpc
 * @email 1728980597@qq.com
 * @date 2022-02-12 17:11:28
 */
public interface CategoryService extends IService<CategoryEntity> {
    //分页
    PageUtils queryPage(Map<String, Object> params);
    //三级分类 树形
    List<CategoryEntity> listWithTree();
    //批量删除菜单
    void removeMenuByIds(List<Long> asList);
    //找到catelogId 的完整路径
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
    //获取一级分类
    List<CategoryEntity> getLevel1Categorys();
    // 查出所有分类
    Map<String, List<Catelog2Vo>>  getCatalogJson();
}

